import {
  type NoticeQuery,
  RemoteControlNotice,
  RemoteStartNotice,
  OfflineNotice,
} from '@/controller/common/Notice/notice'

// 离线
export const ConnectionFailed = 'SDK.Error.HomeAppliance.Connection.Initialization.Failed'
// 远程控制未开
export const RemoteControlNotActive = 'BSH.Common.Error.RemoteControlNotActive'
// 远程启动未开
export const RemoteStartNotActive = 'BSH.Common.Error.RemoteStartNotActive'
// 本地操作
export const LockedByLocalControl = 'BSH.Common.Error.LockedByLocalControl'
// Operation State 错误
export const WrongOperationState = 'SDK.Error.WrongOperationState'
// 程序无法写入
export const ProgramNotWritable = 'SDK.Error.ProgramNotWritable'

export const ErrorNoticeQueryKeys: Record<string, NoticeQuery> = {
  [RemoteControlNotActive]: RemoteControlNotice,
  [RemoteStartNotActive]: RemoteStartNotice,
  [ConnectionFailed]: OfflineNotice,
}
